<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2023-02-07 13:23:15
 * @Last Modified time: 2023-02-07 14:09:25
 */
namespace app\common\dao\user;

use app\common\model\user\UserWaterModel;
use frank\base\BaseDao;
/**
 * 用户流水
 * Class UserWaterDao
 * @package app\common\dao\user
 */
class UserWaterDao extends BaseDao
{
    /**
     * 设置模型
     */
    protected function setModel(): string
    {
        return UserWaterModel::class;
    }
    
    /**
     * 列表
     */
    public function getUserWaterList(array $where = [], int $page, int $limit)
    {
        return $this->search($where)->order('id DESC')->page($page)->paginate($limit)->toArray();
    }

}

